package com.dk.service.impl;

import com.dk.mapper.WmRtVendorMapper;
import com.dk.pojo.WmRtVendor;
import com.dk.service.WmRtVendorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WmRtVendorServiceImpl implements WmRtVendorService {

    @Autowired
    private WmRtVendorMapper rtVendorMapper;

    @Override
    public void insertrtVendor(WmRtVendor rtVendor) {
        rtVendorMapper.insert(rtVendor);
    }

    @Override
    public void deleteById(Long id) {
        rtVendorMapper.deleteByPrimaryKey(id);
    }

    @Override
    public void deleteAllByIds(List<String> ids) {
        rtVendorMapper.deleteAll(ids);
    }

    @Override
    public List<WmRtVendor> selectrtVendor() {
        return rtVendorMapper.selectByExample(null);
    }

    @Override
    public void updateItem(WmRtVendor rtVendor) {
        rtVendorMapper.updateByPrimaryKeySelective(rtVendor);
    }
}
